import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "login",
    component: r => {
      require(["./login/Login"], r);
    },
    meta: { title: "登录" }
  },
  {
    path: "/login/ding",
    name: "dingLogin",
    component: r => {
      require(["./login/dingLogin"], r);
    },
    meta: { title: "钉钉授权登录" }
  },
  {
    path: "/workflow/apply",
    name: "workflowApply",
    component: r => {
      require(["./workflow/workflowApply"], r);
    },
    meta: { title: "发起流程" }
  },
  {
    path: "/main",
    name: "main",
    component: r => {
      require(["./Main"], r);
    },
    meta: { title: "洛阳市网站管理" },
    children: [
      // !首页
      {
        path: "/main/home",
        name: "index",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "首页" },
        children: [
          {
            path: "/main/web/showData",
            name: "showData",
            component: r => {
              require(["./web/showData"], r);
            },
            meta: { title: "数据大屏" }
          },
        ]
      },
      // !残疾信息
      {
        path: "/main/home",
        name: "dis",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "残疾事项管理" },
        children: [
          {
            path: "/main/dis/manage",
            name: "manage",
            component: r => {
              require(["./dis/manage"], r);
            },
            meta: { title: "残疾人信息管理" }
          },
          {
            path: "/main/dis/info",
            name: "info",
            component: r => {
              require(["./dis/info"], r);
            },
            meta: { title: "残疾人信息列表" }
          },
          {
            path: "/main/dis/enjoymentPolicy",
            name: "enjoymentPolicy",
            component: r => {
              require(["./dis/enjoymentPolicy"], r);
            },
            meta: { title: "享受政策列表" }
          },
          {
            path: "/main/dis/appliance/serviceManage",
            name: "serviceManage",
            component: r => {
              require(["./dis/appliance/serviceManage"], r);
            },
            meta: { title: "基本服务管理" }
          },
          {
            path: "/main/dis/appliance/eqManage",
            name: "eqManage",
            component: r => {
              require(["./dis/appliance/eqManage"], r);
            },
            meta: { title: "辅助器具管理" }
          },
          {
            path: "/main/dis/appliance/adaptation",
            name: "adaptation",
            component: r => {
              require(["./dis/appliance/adaptation"], r);
            },
            meta: { title: "辅助器具设配列表" }
          },
          {
            path: "/main/dis/appliance/addOrEditAdaptation",
            name: "addOrEditAdaptation",
            component: r => {
              require(["./dis/appliance/addOrEditAdaptation"], r);
            },
            meta: { title: "新增/编辑辅助器具设配" }
          },
          {
            path: "/main/dis/appliance/adaptationInfo",
            name: "adaptationInfo",
            component: r => {
              require(["./dis/appliance/adaptationInfo"], r);
            },
            meta: { title: "辅助器具设配详情" }
          },
          {
            path: "/main/dis/appliance/connectionRelation",
            name: "connectionRelation",
            component: r => {
              require(["./dis/appliance/connectionRelation"], r);
            },
            meta: { title: "残疾类别关联关系" }
          },
          {
            path: "/main/dis/appliance/serviceManageDetail",
            name: "serviceManageDetail",
            component: r => {
              require(["./dis/appliance/serviceManageDetail"], r);
            },
            meta: { title: "新增或修改基本服务" }
          },
          {
            path: "/main/dis/appliance/eqManageDetail",
            name: "eqManageDetail",
            component: r => {
              require(["./dis/appliance/eqManageDetail"], r);
            },
            meta: { title: "新增或修改辅助器具" }
          },
          {
            path: "/main/dis/accessible/manage",
            name: "accessibleManage",
            meta: { title: "无障碍改造管理" },
            component: r => {
              require(["./dis/accessible/manage"], r);
            },
          },
          {
            path: "/main/dis/accessible/villages",
            name: "accessibleVillages",
            meta: { title: "乡镇无障碍改造汇总" },
            component: r => {
              require(["./dis/accessible/villages"], r);
            },
          },
          {
            path: "/main/dis/accessible/community",
            name: "accessibleCommunity",
            meta: { title: "社区无障碍改造汇总" },
            component: r => {
              require(["./dis/accessible/community"], r);
            },
          },
          {
            path: "/main/dis/recovery/mine",
            name: "recoveryMine",
            component: r => {
              require(["./dis/recovery/mine"], r);
            },
            meta: { title: "我发起的" }
          },
          {
            path: "/main/dis/recovery/manage",
            name: "recoveryManage",
            component: r => {
              require(["./dis/recovery/manage"], r);
            },
            meta: { title: "康复救助管理" }
          },
          {
            path: "/main/dis/recovery/detail",
            name: "recoveryDetail",
            component: r => {
              require(["./dis/recovery/detail"], r);
            },
            meta: { title: "康复救助详情" }
          },
          {
            path: "/main/dis/recovery/orgManage",
            name: "recoveryOrgManage",
            component: r => {
              require(["./dis/recovery/orgManage"], r);
            },
            meta: { title: "康复救助机构管理" }
          },
          {
            path: "/main/dis/recovery/orgAudit",
            name: "recoveryOrgAudit",
            component: r => {
              require(["./dis/recovery/orgAudit"], r);
            },
            meta: { title: "救助机构审核" }
          },
          {
            path: "/main/dis/recovery/myOrgManage",
            name: "recoveryMyOrgManage",
            component: r => {
              require(["./dis/recovery/myOrgManage"], r);
            },
            meta: { title: "我的救助机构" }
          },
          {
            path: "/main/dis/recovery/orgDetail",
            name: "orgDetail",
            component: r => {
              require(["./dis/recovery/orgDetail"], r);
            },
            meta: { title: "康复救助机构详情" }
          },
          {// 康复机构
            path: "/main/dis/rehabilitation/synopsisList",
            name: "synopsisList",
            component: r => {
              require(["./dis/rehabilitation/synopsisList"], r);
            },
            meta: { title: "简介管理" }
          },
          {
            path: "/main/dis/rehabilitation/synopsisEdit",
            name: "synopsisEdit",
            component: r => {
              require(["./dis/rehabilitation/synopsisEdit"], r);
            },
            meta: { title: "新增或修改简介管理" }
          },
          {
            path: "/main/dis/rehabilitation/synopsisDetail",
            name: "synopsisDetail",
            component: r => {
              require(["./dis/rehabilitation/synopsisDetail"], r);
            },
            meta: { title: "简介详情" }
          },
          {
            path: "/main/dis/rehabilitation/synopsis",
            name: "synopsis",
            component: r => {
              require(["./dis/rehabilitation/synopsis"], r);
            },
            meta: { title: "简介管理" }
          },
          {//教师管理
            path: "/main/dis/teacher/teacherList",
            name: "teacher",
            component: r => {
              require(["./dis/teacher/teacherList"], r);
            },
            meta: { title: "教师管理" }
          },
          {
            path: "/main/dis/teacher/teacherEdit",
            name: "teacherEdit",
            component: r => {
              require(["./dis/teacher/teacherEdit"], r);
            },
            meta: { title: "教师新增或编辑" }
          },
          {
            path: "/main/dis/teacher/teacherAdd",
            name: "teacherAdd",
            component: r => {
              require(["./dis/teacher/teacherAdd"], r);
            },
            meta: { title: "新增教师" }
          },
          {
            path: "/main/dis/teacher/teacherDetail",
            name: "teacherDetail",
            component: r => {
              require(["./dis/teacher/teacherDetail"], r);
            },
            meta: { title: "教师详情" }
          },
          //栏目管理 
          {
            path: "/main/dis/program/programList",
            name: "program",
            component: r => {
              require(["./dis/program/programList"], r);
            },
            meta: { title: "栏目管理" }
          },
          {
            path: "/main/dis/program/programEdit",
            name: "programEdit",
            component: r => {
              require(["./dis/program/programEdit"], r);
            },
            meta: { title: "栏目管理编辑" }
          },
          {
            path: "/main/dis/program/programAdd",
            name: "programAdd",
            component: r => {
              require(["./dis/program/programAdd"], r);
            },
            meta: { title: "栏目管理新增" }
          },
          {
            path: "/main/dis/program/programDetail",
            name: "programDetail",
            component: r => {
              require(["./dis/program/programDetail"], r);
            },
            meta: { title: "栏目管理详情" }
          },
          // 文章管理
          {
            path: "/main/dis/article/articleList",
            name: "articleList",
            component: r => {
              require(["./dis/article/articleList"], r);
            },
            meta: { title: "文章管理" }
          },
          {
            path: "/main/dis/article/articleAdd",
            name: "articleAdd",
            component: r => {
              require(["./dis/article/articleAdd"], r);
            },
            meta: { title: "新增文章管理" }
          },
          {
            path: "/main/dis/article/articleEdit",
            name: "articleEdit",
            component: r => {
              require(["./dis/article/articleEdit"], r);
            },
            meta: { title: "新增或编辑文章管理" }
          },
          // {
          //   path: "/main/dis/article/ArticleEditor",
          //   name: "articleEditor",
          //   component: r => {
          //     require(["./dis/article/ArticleEditor"], r);
          //   },
          //   meta: { title: "新增或编辑文章管理" }
          // },
          {
            path: "/main/dis/article/articleDetiail",
            name: "articleDetiail",
            component: r => {
              require(["./dis/article/articleDetiail"], r);
            },
            meta: { title: "文章管理详情" }
          },
          // 课程管理
          {
            path: "/main/dis/curriculum/curriculumList",
            name: "curriculumList",
            component: r => {
              require(["./dis/curriculum/curriculumList"], r);
            },
            meta: { title: "课程管理" }
          },
          {
            path: "/main/dis/curriculum/curriculumAdd",
            name: "curriculumAdd",
            component: r => {
              require(["./dis/curriculum/curriculumAdd"], r);
            },
            meta: { title: "课程管理新增或编辑" }
          },
          {
            path: "/main/dis/curriculum/curriculumEdit",
            name: "curriculumEdit",
            component: r => {
              require(["./dis/curriculum/curriculumEdit"], r);
            },
            meta: { title: "课程管理新增或编辑" }
          },
          {
            path: "/main/dis/curriculum/curriculumDetail",
            name: "curriculumDetail",
            component: r => {
              require(["./dis/curriculum/curriculumDetail"], r);
            },
            meta: { title: "课程管理详情" }
          },
          {
            path: "/main/dis/curriculum/curriculumSignIn",
            name: "curriculumSignIn",
            component: r => {
              require(["./dis/curriculum/curriculumSignIn"], r);
            },
            meta: { title: "课程管理详情" }
          },
          // 机构接收
          {
            path: "/main/dis/receive",
            name: "receive",
            component: r => {
              require(["./dis/receive"], r);
            },
            meta: { title: "机构接收" }
          },
          // 镇级儿童救助申请审批
          // {
          //   path: "/main/dis/townshipApprove",
          //   name: "township",
          //   component: r => {
          //     require(["./dis/townshipApprove"], r);
          //   },
          //   meta: { title: "儿童救助申请审批" }
          // },
          // {
          //   path: "/main/dis/approveDetail",
          //   name: "approveDetail",
          //   component: r => {
          //     require(["./dis/approveDetail"], r);
          //   },
          //   meta: { title: "详细信息" }
          // },
          // // 区级儿童救助申请审批
          // {
          //   path: "/main/dis/regionApprove",
          //   name: "region",
          //   component: r => {
          //     require(["./dis/regionApprove"], r);
          //   },
          //   meta: { title: "区级儿童救助申请审批" }
          // },
          // 机构资金数据统计
          {
            path: "/main/dis/fundStatistics",
            name: "fundStatistics",
            component: r => {
              require(["./dis/fundStatistics"], r);
            },
            meta: { title: "机构资金数据统计" }
          },
          // 课程数量
          {
            path: "/main/dis/courseInfo",
            name: "courseInfo",
            component: r => {
              require(["./dis/courseInfo"], r);
            },
            meta: { title: "课程信息" }
          },
          // 学员个数
          {
            path: "/main/dis/studentInfo",
            name: "studentInfo",
            component: r => {
              require(["./dis/studentInfo"], r);
            },
            meta: { title: "学员信息" }
          }
        ]
      },
      // !问卷调查
      {
        path: "/main/home",
        name: "survey",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "民意调查" },
        children: [
          {
            path: "/main/survey/questionnaire",
            name: "questionnaire",
            component: r => {
              require(["./survey/questionnaire"], r);
            },
            meta: { title: "问卷调查" }
          },
          {
            path: "/main/survey/evaluateManage",
            name: "evaluateManage",
            component: r => {
              require(["./survey/evaluateManage"], r);
            },
            meta: { title: "评价管理" }
          },
          {
            path: "/main/survey/evaluateRank",
            name: "evaluateRank",
            component: r => {
              require(["./survey/evaluateRank"], r);
            },
            meta: { title: "评价排名" }
          },
          {
            path: "/main/survey/mailbox",
            name: "mailbox",
            component: r => {
              require(["./survey/mailbox"], r);
            },
            meta: { title: "领导信箱" }
          },
        ]
      },
      // !流程
      {
        path: "/main/home",
        name: "workflow",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "流程管理" },
        children: [
          {
            path: "/main/workflow/flowHome",
            name: "flowHome",
            component: r => {
              require(["./workflow/flowHome"], r);
            },
            meta: { title: "流程首页" }
          },
          {
            path: "/main/workflow/flowManage",
            name: "flowManage",
            component: r => {
              require(["./workflow/flowManage"], r);
            },
            meta: { title: "流程管理" }
          },
          {
            path: "/main/workflow/instanceFieldSettings",
            name: "instanceFieldSettings",
            component: r => {
              require(["./workflow/instanceFieldSettings"], r);
            },
            meta: { title: "实例显示字段设置" }
          },
          {
            path: "/main/workflow/instanceQuerySettings",
            name: "instanceQuerySettings",
            component: r => {
              require(["./workflow/instanceQuerySettings"], r);
            },
            meta: { title: "实例查询信息设置" }
          },
          {
            path: "/main/workflow/flowNew",
            name: "flowNew",
            component: r => {
              require(["./workflow/flowNew"], r);
            },
            meta: { title: "流程发起" }
          },
          {
            path: "/main/workflow/formManage",
            name: "formManage",
            component: r => {
              require(["./workflow/formManage"], r);
            },
            meta: { title: "表单管理" }
          },
          {
            path: "/main/workflow/toDoTaskList",
            name: "toDoTaskList",
            component: r => {
              require(["./workflow/toDoTaskList"], r);
            },
            meta: { title: "待办事项" }
          },
          {
            path: "/main/workflow/completedTask",
            name: "completedTask",
            component: r => {
              require(["./workflow/completedTask"], r);
            },
            meta: { title: " 已办事项" }
          },
          {
            path: "/main/workflow/handleTask",
            name: "handleTask",
            component: r => {
              require(["./workflow/handleTask"], r);
            },
            meta: { title: "经办事项" }
          },
          {
            path: "/main/workflow/button",
            name: "button",
            component: r => {
              require(["./workflow/button"], r);
            },
            meta: { title: "按钮管理" }
          },
          {
            path: "/main/workflow/redFile",
            name: "redFile",
            component: r => {
              require(["./workflow/redFile"], r);
            },
            meta: { title: "红头文件管理" }
          },
          {
            path: "/main/workflow/instance",
            name: "instance",
            component: r => {
              require(["./workflow/instance"], r);
            },
            meta: { title: "实例管理" }
          },
          {
            path: "/main/workflow/instanceArchive",
            name: "instanceArchive",
            component: r => {
              require(["./workflow/instanceArchive"], r);
            },
            meta: { title: "实例归档" }
          },
          {
            path: "/main/workflow/exportTemplate",
            name: "exportTemplate",
            component: r => {
              require(["./workflow/exportTemplate"], r);
            },
            meta: { title: "导出模板配置" }
          },
          {
            path: "/main/workflow/instanceAccount",
            name: "instanceAccount",
            component: r => {
              require(["./workflow/instanceAccount"], r);
            },
            meta: { title: "流程台账", keepAlive: true }
          },
          {
            path: "/main/workflow/classification",
            name: "classification",
            component: r => {
              require(["./workflow/classification"], r);
            },
            meta: { title: "流程信息管理" }
          },
        ]
      },
      // !文章
      {
        path: "/main/article",
        name: "article",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "文章管理" },
        children: [
          {
            path: "/main/article/column",
            name: "column",
            component: r => {
              require(["./article/column"], r);
            },
            meta: { title: "栏目管理" }
          },
          {
            path: "/main/article/essay",
            name: "essay",
            component: r => {
              require(["./article/essay"], r);
            },
            meta: { title: "文章管理" }
          },
          {
            path: "/main/article/show",
            name: "show",
            component: r => {
              require(["./article/show"], r);
            },
            meta: { title: "文章信息" }
          },
          {
            path: "/main/article/essayDetail",
            name: "essayDetail",
            component: r => {
              require(["./article/essayDetail"], r);
            },
            meta: { title: "文章预览" }
          },
          {
            path: "/main/article/showDetail",
            name: "showDetail",
            component: r => {
              require(["./article/showDetail"], r);
            },
            meta: { title: "文章详情" }
          },
          {
            path: "/main/article/report",
            name: "report",
            component: r => {
              require(["./article/report"], r);
            },
            meta: { title: "报送管理" }
          },
          {
            path: "/main/article/static",
            name: "static",
            component: r => {
              require(["./article/static"], r);
            },
            meta: { title: "静态化" }
          },
          {
            path: "/main/article/grandTotal",
            name: "grandTotal",
            component: r => {
              require(["./article/grandTotal"], r);
            },
            meta: { title: "生产总值" }
          },
          {
            path: "/main/article/householdConsumption",
            name: "householdConsumption",
            component: r => {
              require(["./article/householdConsumption"], r);
            },
            meta: { title: "人民生活" }
          },
          {
            path: "/main/article/demographicData",
            name: "demographicData",
            component: r => {
              require(["./article/demographicData"], r);
            },
            meta: { title: "人口数据" }
          },
          {
            path: "/main/article/industrialData",
            name: "industrialData",
            component: r => {
              require(["./article/industrialData"], r);
            },
            meta: { title: "工业和建筑业" }
          },
          {
            path: "/main/article/revenueData",
            name: "revenueData",
            component: r => {
              require(["./article/revenueData"], r);
            },
            meta: { title: "就业" }
          },
          {
            path: "/main/article/grainData",
            name: "grainData",
            component: r => {
              require(["./article/grainData"], r);
            },
            meta: { title: "粮食数据" }
          },
          {
            path: "/main/article/domesticTrade",
            name: "domesticTrade",
            component: r => {
              require(["./article/domesticTrade"], r);
            },
            meta: { title: "国内贸易" }
          },
          {
            path: "/main/article/foreignTrade",
            name: "foreignTrade",
            component: r => {
              require(["./article/foreignTrade"], r);
            },
            meta: { title: "对外贸易" }
          }
        ]
      },
      // !技能
      {
        path: "/main/skill",
        name: "skills",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "技能培训" },
        children: [
          {
            path: "/main/skill",
            name: "skill",
            component: r => {
              require(["./skill/skill"], r);
            },
            meta: { title: "技能培训" }
          }
        ]
      },
      // !短信
      {
        path: "/main/message",
        name: "message",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "短信管理" },
        children: [
          {
            path: "/main/message/mySend",
            name: "mySend",
            component: r => {
              require(["./message/mySend"], r);
            },
            meta: { title: "我发送的" }
          },
          {
            path: "/main/message/sendSms",
            name: "sendSms",
            component: r => {
              require(["./message/sendSms"], r);
            },
            meta: { title: "发送短信" }
          },
          {
            path: "/main/message/smsHistory",
            name: "smsHistory",
            component: r => {
              require(["./message/smsHistory"], r);
            },
            meta: { title: "历史记录" }
          },
          {
            path: "/main/message/smsHistoryViews",
            name: "smsHistoryViews",
            component: r => {
              require(["./message/smsHistoryViews"], r);
            },
            meta: { title: "历史记录详情" }
          },
          {
            path: "/main/message/smsTemplate",
            name: "smsTemplate",
            component: r => {
              require(["./message/smsTemplate"], r);
            },
            meta: { title: "短信模板" }
          },
          {
            path: "/main/message/smsConfig",
            name: "smsConfig",
            component: r => {
              require(["./message/smsConfig"], r);
            },
            meta: { title: "短信设置" }
          }
        ]
      },
      //共享文档
      {
        path: "/main/document",
        name: "document",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "资料共享" },
        children: [{
          path: "/main/document/release",
          name: "release",
          component: r => {
            require(["./document/release"], r);
          },
          meta: { title: "发布文档" }
        },
          {
            path: "/main/document/examineHistory",
            name: "examineHistory",
            component: r => {
              require(["./document/examineHistory"], r);
            },
            meta: { title: "审核记录" }
          },
          {
            path: "/main/document/myRelease",
            name: "myRelease",
            component: r => {
              require(["./document/myRelease"], r);
            },
            meta: { title: "我共享的" }
          },
          {
            path: "/main/document/ReleaseManagement",
            name: "ReleaseManagement",
            component: r => {
              require(["./document/ReleaseManagement"], r);
            },
            meta: { title: "文档管理" }
          },
          {
            path: "/main/document/deleteFlag",
            name: "deleteFlag",
            component: r => {
              require(["./document/deleteFlag"], r);
            },
            meta: { title: "回收站" }
          },
          {
            path: "/main/document/mineDeleteFlag",
            name: "mineDeleteFlag",
            component: r => {
              require(["./document/mineDeleteFlag"], r);
            },
            meta: { title: "个人回收站" }
          },
          {
            path: "/main/document/myAccept",
            name: "myAccept",
            component: r => {
              require(["./document/myAccept"], r);
            },
            meta: { title: "我收到的" }
          },
          {
            path: "/main/document/examine",
            name: "examine",
            component: r => {
              require(["./document/examine"], r);
            },
            meta: { title: "文档详情" }
          },
          {
            path: "/main/document/releaseHome",
            name: "releaseHome",
            component: r => {
              require(["./document/releaseHome"], r);
            },
            meta: { title: "资料首页" }
          },
          {
            path: "/main/document/reviewed",
            name: "reviewed",
            component: r => {
              require(["./document/reviewed"], r);
            },
            meta: { title: "审核文档" }
          }
        ]
      },
      // !权限菜单
      {
        path: "/main/system",
        name: "system",
        component: r => {
          require(["./home/Home"], r);
        },
        meta: { title: "系统管理" },
        children: [
          {
            path: "/main/system/getMenu",
            name: "getMenu",
            component: r => {
              require(["./system/getMenu"], r);
            },
            meta: { title: "菜单管理" }
          },
          {
            path: "/main/system/getMenuMobile",
            name: "getMenuMobile",
            component: r => {
              require(["./system/appPermission/getMenuMobile"], r);
            },
            meta: { title: "移动端菜单管理" }
          }, {
            path: "/main/system/appDisUser",
            name: "appDisUser",
            component: r => {
              require(["./system/appPermission/appDisUser"], r);
            },
            meta: { title: "app资源分配用户" }
          }, {
            path: "/main/system/appResource",
            name: "appResource",
            component: r => {
              require(["./system/appPermission/appResource"], r);
            },
            meta: { title: "用户分配app资源" }
          },
          {
            path: "/main/system/department",
            name: "department",
            component: r => {
              require(["./system/department"], r);
            },
            meta: { title: "部门管理" }
          },
          {
            path: "/main/system/dataDict",
            name: "dataDict",
            component: r => {
              require(["./system/dataDict"], r);
            },
            meta: { title: "数据字典" }
          },
          {
            path: "/main/system/cityManage",
            name: "cityManage",
            component: r => {
              require(["./system/cityManage"], r);
            },
            meta: { title: "城镇管理" }
          },
          {
            path: "/main/system/dataDictDetail",
            name: "dataDictDetail",
            component: r => {
              require(["./system/dataDictDetail"], r);
            },
            meta: { title: "数据字典详情" }
          },
          {
            path: "/main/system/role",
            name: "role",
            component: r => {
              require(["./system/role"], r);
            },
            meta: { title: "角色管理" }
          },
          {
            path: "/main/system/user",
            name: "user",
            component: r => {
              require(["./system/user"], r);
            },
            meta: { title: "用户管理", keepAlive: true }
          },
          {
            path: "/main/system/addressBook",
            name: "addressBook",
            component: r => {
              require(["./system/addressBook"], r);
            },
            meta: { title: "通讯录" }
          },
          {
            path: "/main/system/contact",
            name: "contact",
            component: r => {
              require(["./system/contact"], r);
            },
            meta: { title: "通讯录管理" }
          },
          {
            path: "/main/system/commonLanguage",
            name: "commonLanguage",
            component: r => {
              require(["./system/commonLanguage"], r);
            },
            meta: { title: "用户常用语" }
          },
          {
            path: "/main/system/systemCommonLanguage",
            name: "systemCommonLanguage",
            component: r => {
              require(["./system/systemCommonLanguage"], r);
            },
            meta: { title: "系统常用语" }
          },
          {
            path: "/main/system/template",
            name: "template",
            component: r => {
              require(["./system/template"], r);
            },
            meta: { title: "模板管理" }
          },
          // { path: '/main/system/oplog', name: 'system_oplog', component: r => { require(['./system/oplog'], r) }, meta: { title: '系统日志' }},
          {
            path: "/main/system/disUser",
            name: "disUser",
            component: r => {
              require(["./system/disUser"], r);
            },
            meta: { title: "分配用户" }
          },
          {
            path: "/main/system/templateEditor",
            name: "templateEditor",
            component: r => {
              require(["./system/templateEditor"], r);
            },
            meta: { title: "模板编辑" }
          },
          {
            path: "/main/system/tempContent",
            name: "tempContent",
            component: r => {
              require(["./system/tempContent"], r);
            },
            meta: { title: "模板详情" }
          },
          {
            path: "/main/system/templateFile",
            name: "templateFile",
            component: r => {
              require(["./system/templateFile"], r);
            },
            meta: { title: "文件" }
          },
          {
            path: "/main/system/CustomModel",
            name: "CustomModel",
            component: r => {
              require(["./system/CustomModel"], r);
            },
            meta: { title: "自定义模型" }
          },
          {
            path: "/main/system/ModelDetails",
            name: "ModelDetails",
            component: r => {
              require(["./system/ModelDetails"], r);
            },
            meta: { title: "模型详情" }
          },
          {
            path: "/main/system/siteSet",
            name: "siteSet",
            component: r => {
              require(["./system/siteSet"], r);
            },
            meta: { title: "站点设置" }
          },
          {
            path: "/main/system/hotWord",
            name: "hotWord",
            component: r => {
              require(["./system/hotWord"], r);
            },
            meta: { title: "热词管理" }
          },
          {
            path: "/main/system/sensitiveWord",
            name: "sensitiveWord",
            component: r => {
              require(["./system/sensitiveWord"], r);
            },
            meta: { title: "敏感词管理" }
          },
          {
            path: "/main/system/noticeSetting",
            name: "noticeSetting",
            component: r => {
              require(["./system/noticeSetting"], r);
            },
            meta: { title: "消息提醒设置" }
          },
          {
            path: "/main/system/category",
            name: "category",
            component: r => {
              require(["./system/category"], r);
            },
            meta: { title: "分类管理" }
          },
          {
            path: "/main/system/step",
            name: "step",
            component: r => {
              require(["./system/step"], r);
            },
            meta: { title: "步骤管理" }
          },
          {
            path: "/main/system/systemConfig",
            name: "systemConfig",
            component: r => {
              require(["./system/systemConfig"], r);
            },
            meta: { title: "系统配置" }
          },
          {
            path: "/main/system/workGroup",
            name: "workGroup",
            component: r => {
              require(["./system/workGroup"], r);
            },
            meta: { title: "工作组管理" }
          },
          {
            path: "/main/system/myWorkGroup",
            name: "myWorkGroup",
            component: r => {
              require(["./system/myWorkGroup"], r);
            },
            meta: { title: "我的工作组" }
          },
          {
            path: "/main/system/personalWorkGroup",
            name: 'personalWorkGroup',
            component: r => {
              require(["./system/myWorkGroup"], r);
            },
            meta: { title: "个人工作组" }
          },
          {
            path: "/main/system/tool",
            name: "tool",
            component: r => {
              require(["./system/tool"], r);
            },
            meta: { title: "常用工具" }
          },
          {
            path: "/main/system/operationLog",
            name: "operationLog",
            component: r => {
              require(["./system/operationLog"], r);
            },
            meta: { title: "操作日志" }
          },
          {
            path: "/main/system/moduleSetting",
            name: "moduleSetting",
            component: r => {
              require(["./system/moduleSetting"], r);
            },
            meta: { title: "模块用户设置" }
          },
          {
            path: "/main/system/interactiveSetting",
            name: "interactiveSetting",
            component: r => {
              require(["./system/interactiveSetting"], r);
            },
            meta: { title: "交互设置" }
          }
        ]
      }
    ]
  },
  {
    path: "/other/workflow/classification",
    name: "otherClassification",
    component: r => {
      require(["./workflow/classification"], r);
    },
    meta: { title: "流程信息管理" }
  },
  {
    path: "/login/forgetPassword",
    name: "forgetPassword",
    component: r => {
      require(["./login/forgetPassword"], r);
    },
    meta: { title: "忘记密码" }
  },
  {
    path: "/demo",
    name: "test",
    component: r => {
      require(["./demo/demo"], r);
    },
    meta: { title: "测试页" }
  },
];

export default new VueRouter({
  // mode: "history",
  routes: routes
});
